// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}


// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// 以下是我自定义

$--color-primary: #545c64;
$--color-danger: #F5222D;
$color-theme: #2f333e;
$color-theme--active: #333844;

.el-table {
  th {
    background-color: #f7f7f7;
    border-radius: 4px 4px 0 0;

    &.is-leaf {
      border-bottom-color: #f7f7f7;

      .cell {
        color: #101010;
      }
    }
  }
}

.el-table__empty-block {
  min-height: 220px;
}

.el-button {
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.015);
  font-weight: normal;

  &.el-button--small {
    font-size: 14px;
    padding: 8px 15px;
  }

  //transition: all 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);

  //&:hover {
  //  box-shadow: 0 7px 14px rgba(50, 50, 93, .1), 0 3px 6px rgba(0, 0, 0, .08);
  //  transform: translateY(-1px);
  //}


  &--dashed {
    color: rgba(0, 0, 0, 0.65);
    background-color: #fff;
    border-color: #d9d9d9;
    border-style: dashed;

    &:focus,
    &:hover {
      color: $--color-primary;
      border-color: $--color-primary;
      background-color: #fff;
    }
  }

  &--danger {
    color: $--color-danger;
    background-color: #f5f5f5;
    border-color: #d9d9d9;

    &:hover {
      background-color: $--color-danger;
      color: #fff;
      border-color: $--color-danger;
    }

    &:focus {
      color: $--color-danger;
      background-color: #fff;
      border-color: $--color-danger;
    }
  }

}


.el-input,
.el-cascader,
.el-textarea {
  transition: all 0.3s;
  &__inner:focus {
    box-shadow: 84 92 100 2px rgba(24, 144, 255, 0.2)
  }
}

.el-form-item {
  &.is-error {

    .el-input__inner,
    .el-textarea__inner {
      box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2)
    }
  }

  &.is-success {
    .el-input__inner,
    .el-textarea__inner {
      // border-color: $--input-border-color;
    }
  }
}

.el-form {
  &.el-form--label-left {
    .el-form-item.is-required .el-form-item__label {
      margin-left: -10px;
    }
  }
}

.el-select-dropdown__item {
  &.hover {
    background-color: rgba(52, 195, 136, 0.08);
  }
}

.el-message {
  padding: 16px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: #fff;
  border: none;

  &--success {

    .el-message__content,
    .el-icon-success {
      color: $--color-primary;
    }
  }
}

.el-button--mini {
  padding: 4px 6px;
  font-size: 12px;
}

.dialog-footer {
  text-align: center;
}

.el-dropdown-menu {
  &.no-arraw {
    .popper__arrow {
      display: none;
    }
  }
}

a {
  color: $--color-primary !important;
}

.el-form-item {
  p {
    padding: 4px 0;
    font-size: 12px;
    color: #888;
    line-height: 1.2;
  }
}